package services

// 红包模块-服务接口-常量枚举
const (
	DefaultBlessing   = "恭喜发财，鸿富猪到！"
	DefaultTimeFormat = "2006-01-02.15:04:05"
)

//红包订单类型枚举：发订单、退订单
type OrderType int

const (
	OrderTypeSending OrderType = 1 // 发布单
	OrderTypeRefund  OrderType = 2 //退款单
)

//支付状态枚举：1-未支付，2-支付中，3-已支付，4-支付失败，61-未退款，62退款中，63-已退款，64-退款失败
type PayStatus int

const (
	PayNothing PayStatus = 1 //未支付
	Paying     PayStatus = 2 //支付中
	Payed      PayStatus = 3 //已支付
	PayFailure PayStatus = 4 //支付失败

	RefundNothing PayStatus = 61 //未退款
	Refunding     PayStatus = 62 //退款中
	Refunded      PayStatus = 63 //已退款
	RefundFailure PayStatus = 64 //退款失败
)

//红包订单状态枚举：创建、发布、过期、失效、过期退款成功，过期退款失败
type OrderStatus int

const (
	OrderCreate                  OrderStatus = 1 //创建
	OrderSending                 OrderStatus = 2 //发布
	OrderExpired                 OrderStatus = 3 //过期
	OrderDisabled                OrderStatus = 4 //失效
	OrderExpiredRefundSuccessful OrderStatus = 5 //过期退款成功
	OrderExpiredRefundFalured    OrderStatus = 6 //过期退款失败
)

//红包类型：普通红包，碰运气红包
type EnvelopeType int

// 红包类型常量
const (
	GeneralEnvelopeType = 1 //普通红包
	LuckyEnvelopeType   = 2 //碰运气红包
)

// 红包类型Map：1-普通红包；2-碰运气红包
var EnvelopeTypes = map[EnvelopeType]string{
	GeneralEnvelopeType: "普通红包",
	LuckyEnvelopeType:   "碰运气红包",
}
